446e63dd6f5b879e638ad3774bd1b0929e6e937d,java/src/kanzi/util/color/YCbCrColorModelConverter.java,YCbCrColorModelConverter,convertYUV422toRGB,#number[]#number[]#number[]#number[]#,719
Before Change
if (this.upSampler != null)
{
this.convertYUV422toYUV444(y, u, v);
this.convertYUV444toRGB(y, u, v, rgb);
return true;
}
After Change
// In YUV422 format the U and V color components are subsampled 1:2 horizontally
private boolean convertYUV422toRGB(int[] y, int[] u, int[] v, int[] rgb)
{
if (this.upSampler != null)
{
// Requires u & v of same size as y
this.upSampler.superSampleHorizontal(u, u);
this.upSampler.superSampleHorizontal(v, v);
return this.convertYUV444toRGB(y, u, v, rgb);
}
final int half = this.width >> 1;